FROM java:8-jre

MAINTAINER tidudada@163.com

ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /gateway

WORKDIR /gateway

EXPOSE 9999

ADD ./gateway/target/gateway.jar ./

CMD sleep 60;java -Xms128m -Xmx256m  -Djava.security.egd=file:/dev/./urandom -jar gateway.jar
